<template>
	<u-modal :show="value" :show-title="false" confirmText="关闭" @confirm="$emit('update:value', false)" :async-close="true">
		<view :class="Array.isArray(tip)?tip[1]:'mb5'" v-for="(tip, i) in tips" :key="i">
			{{Array.isArray(tip) ? tip[0] : tip}}
		</view>
	</u-modal>
</template>

<script>
export default {
	props: {
		value: {
			type: Boolean,
			default: false
		},
		tips: {
			type: Array,
			default: () => []
		}
	}
}
</script>